package com.ibm.cloud.banking.customer.service;

import com.ibm.cloud.banking.annotation.PBS;
import com.ibm.cloud.banking.facade.customer.ICustomerCommandFacade;
import com.ibm.cloud.banking.facade.customer.dto.CustomerAccountRelDTO;
import com.ibm.cloud.invoker.PbsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@PBS(servNo = "PBS200002")
@Slf4j
public class GetCustSingleProductAcctsService implements PbsService<CustomerAccountRelDTO, List<CustomerAccountRelDTO>> {

    @Autowired
    ICustomerCommandFacade customerCommandFacade;

    @Override
    public List<CustomerAccountRelDTO> doService(CustomerAccountRelDTO customerAccountRelDTO) {
        return customerCommandFacade.getCustSingleProductAccts(customerAccountRelDTO);
    }
}
